<template>
  <div class="mask">
    <div class="loader" />
  </div>
</template>

<script>
  export default {
    name: 'newLoading',
  }
</script>

<script setup lang="ts"></script>

<style scoped lang="scss">
  // 定义动画 控制 loading旋转

  .mask {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #fff;
    opacity: 0.5;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;

    .custom-loader {
      position: relative;
      width: 48px;
      height: 48px;
      color: #90cf5b;
      -webkit-animation: rotation 1s linear infinite;
      animation: rotation 1s linear infinite;
    }

    .custom-loader::after,
    .custom-loader::before {
      content: '';
      position: absolute;
      width: 24px;
      height: 24px;
      top: 50%;
      left: 50%;
      transform: scale(0.5) translate(0, 0);
      background-color: #00afee;
      border-radius: 50%;
      -webkit-animation: scale2 1s infinite ease-in-out;
      animation: scale2 1s infinite ease-in-out;
    }

    .custom-loader::before {
      background-color: #90cf5b;
      transform: scale(0.5) translate(-48px, -48px);
    }
  }
</style>
